
export function add(vue,param,success,finallyFunc=r=>{}){
  vue.$request.post({
    url: "admin/viewRecord/add",
    params: param,
    success: success,
    finally: finallyFunc
  })
}

export function remove(vue,ids,success,finallyFunc=r=>{}){
  vue.$request.post({
    url: "admin/viewRecord/delete",
    params: {
      jsonIds: ids
    },
    success: success,
    finally: finallyFunc
  })
}
export function update(vue,param,success,finallyFunc=r=>{}){
  vue.$request.post({
    url: "admin/viewRecord/update",
    params: param,
    success: success,
    finally: finallyFunc
  })
}


export function listByUserAndUrl(vue,param,success,finallyFunc = r => {}){
  vue.$request.post({
    url: "admin/viewRecord/listByUserAndUrl",
    params: param,
    success: success,
    finally: finallyFunc
  })
}